<?php


namespace addons\mental\model;

use think\Config;

class User extends \app\common\model\User
{
    public function getAvatarAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['avatar']) ? $data['avatar'] : '');        
         return cdnurl($value,true);
    }
}
